<%@ page import="java.util.ArrayList" %>
<%@ page import="java.util.HashMap" %><%--
  Created by IntelliJ IDEA.
  User: WangJun
  Date: 2024/11/7
  Time: 11:29
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>

<%
    HashMap<String, String> obj = new HashMap<>();
    obj.put("name", "tom");
    obj.put("age", "11");
    request.setAttribute("map", obj);
%>

${map}<br>
${map.name}<br>
${map.age}<br>

${map['name']}<br>
${map['age']}<br>

</body>
</html>
